PRINT '-------------------------------------------'
PRINT 'Starting execution of UM_AuthServiceProviders.SQL'
PRINT '-------------------------------------------'
GO

SET QUOTED_IDENTIFIER OFF
SET ANSI_NULLS ON         -- We don't want (NULL = NULL) == TRUE
GO
SET ANSI_PADDING ON
GO
SET ANSI_NULL_DFLT_ON ON
GO

IF (NOT EXISTS (SELECT name
                FROM sysobjects
                WHERE (name = N'UM_AuthServiceProviders')
                  AND (type = 'U')))
BEGIN
	  PRINT 'Creating the UM_AuthServiceProviders table...'
	  CREATE TABLE [dbo].UM_AuthServiceProviders(
		[AuthServiceProviderId] [smallint] NOT NULL,
		[AuthServiceProviderName] [varchar](50) NOT NULL,
		[AuthServiceProviderDesc] [varchar](256) NULL,
		[IsActive] [bit] NULL,
	 CONSTRAINT [PK_UM_AuthServiceProvider] PRIMARY KEY CLUSTERED 
	(
		[AuthServiceProviderId] ASC
	)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
	) ON [PRIMARY]
END
GO



PRINT '--------------------------------------------'
PRINT 'Inserting Data UM_AuthServiceProviders'
PRINT '--------------------------------------------'

INSERT INTO UM_AuthServiceProviders ([AuthServiceProviderId] ,[AuthServiceProviderName],[AuthServiceProviderDesc],[IsActive])     
	VALUES (1, 'Leisure', 'Leisure', '1')
INSERT INTO UM_AuthServiceProviders ([AuthServiceProviderId] ,[AuthServiceProviderName],[AuthServiceProviderDesc],[IsActive])     
	VALUES (2, 'Gigya', 'Gigya', '1')	
	
GO

PRINT '--------------------------------------------'
PRINT 'Completed execution of UM_AuthServiceProviders.SQL'
PRINT '--------------------------------------------'

